package power

import (
	v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type InterviewRouter struct {
}

// InitInterviewRouter 初始化 interview表 路由信息
func (s *InterviewRouter) InitInterviewRouter(Router *gin.RouterGroup) {
	interviewRouter := Router.Group("interview").Use(middleware.OperationRecord())
	interviewRouterWithoutRecord := Router.Group("interview")
	var interviewApi = v1.ApiGroupApp.PowerApiGroup.InterviewApi
	{
		interviewRouter.POST("createInterview", interviewApi.CreateInterview)             // 新建interview表
		interviewRouter.DELETE("deleteInterview", interviewApi.DeleteInterview)           // 删除interview表
		interviewRouter.DELETE("deleteInterviewByIds", interviewApi.DeleteInterviewByIds) // 批量删除interview表
		interviewRouter.PUT("updateInterview", interviewApi.UpdateInterview)              // 更新interview表
	}
	{
		interviewRouterWithoutRecord.GET("findInterview", interviewApi.FindInterview)         // 根据ID获取interview表
		interviewRouterWithoutRecord.GET("getInterviewList", interviewApi.GetInterviewList)   // 获取interview表列表
		interviewRouterWithoutRecord.GET("getInterviewPower", interviewApi.GetInterViewPower) // 获取能力图
	}
}
